package com.xuebusi.toutiao.test.link;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;

/**
 * TODO 类描述
 *
 * @author shiyanjun
 * @version 1.0
 * @date 2021/4/23 14:08
 */
@Data
public abstract class AbsLink {
    // 开单编号
    @JSONField(ordinal = 1)
    protected String linkNo;
    // 开单人
    @JSONField(ordinal = 2)
    protected String linkCustName;
    // 链单金额
    @JSONField(ordinal = 3)
    protected String linkAmt;
    // 开单日期
    @JSONField(ordinal = 4)
    protected String linkDate;
    // 到期日期
    @JSONField(ordinal = 5)
    protected String linkEndDate;
    // 云单类型 拆分转让、转让、融资、留存、回购
    @JSONField(ordinal = 6)
    protected String linkGenType;
    // 是否作废
    @JSONField(ordinal = 7)
    protected String valid;

    public AbsLink(String linkNo, String linkCustName, String linkAmt, String linkDate, String linkEndDate, String linkGenType, String valid) {
        this.linkNo = linkNo;
        this.linkCustName = linkCustName;
        this.linkAmt = linkAmt;
        this.linkDate = linkDate;
        this.linkEndDate = linkEndDate;
        this.linkGenType = linkGenType;
        this.valid = valid;
    }
}
